class CreateComments < ActiveRecord::Migration
  def self.up
    STDERR.puts "Creating comments table"
    create_table :comments do |t|
      t.column :photo_id,       :integer
      t.column :user_id,        :integer
      t.column :content,        :text
      t.column :created_at,     :datetime
      t.column :updated_at,     :datetime
    end
  end

  def self.down
    STDERR.puts "Dropping comments table"
    drop_table :comments
  end
end
